package com.test.study.dubbo.controller;

import com.test.study.dubbo.model.User;
import com.test.study.dubbo.service.impl.DubboConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 */
@RestController
public class UserController {

    @Autowired
    private DubboConsumerService service;


    @RequestMapping("/save")
    public User saveUser() {
        System.out.println("test");
        return service.saveUser();
    }
}